import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Home',
    redirect:"/home/shop"
  },
  {
    path: '/home',
    name: 'Home',
    component: Home,
    children: [
      {
        
        path: 'shop',
        name: 'shop',
        component: () => import('../views/modules/Shop.vue'),
      },{
        path: 'evaluate',
        name: 'evaluate',
        component: () => import('../views/modules/Evaluate.vue')
      },
      {
        path: 'business',
        name: 'business',
        component: () => import('../views/modules/Business.vue')
      }
    ]
  },
  {
    path: '/shopinfo',
    name: 'shopinfo',
    component: () => import('../views/modules/Shopinfo.vue'),
  }
]

const router = new VueRouter({
  routes
})

export default router
